package api

import (
	"github.com/gin-gonic/gin"
	"zk3zc/api/handler"
	"zk3zc/pkg"
)

func RouterLoad(r *gin.Engine) {
	r.POST("/login", handler.Login)

	r.Use(pkg.JWTAuth("2209a"))
	r.POST("/upload", handler.Upload)
	r.POST("/addArt", handler.AddArt)
	r.POST("/fockArt", handler.FockArt)
}
